if (window.plus) {
    ready();
} else {
    document.addEventListener('plusready', ready, false);
}

$(function(){
  if(AGENT_CLIENT.WEB){
    ready();
  }
})

function ready(){
  var html=[],
      thisPage={};
  var registerSuccPage = function(){
    this.init();
  };
  registerSuccPage.prototype = {
    init:function(){
      this.initData();
      this.bindEvent();
    },
    initData:function(){
      
    },
    bindEvent:function(){
      //去逛逛
      $("#goview,#back").on("click", function () {
        if(AGENT_CLIENT.APP){
          plus.webview.getWebviewById("../mine/mylife.html").evalJS("reloadPage()");
          plus.webview.getWebviewById("../home/main.html").evalJS("redirectTab(0)");
        }else{
          redirect("../home/index.html");
        }
      });
      //完善个人资料
      $("#fullfill").on("click", function () {
          redirect("account.html");
      });
    }
  };
  thisPage = new registerSuccPage();
}
